<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IN ADMIN PANEL | Powered by INDEZINER</title>
<?php include 'head.php'; ?>
<script src="<?php echo cp_content_url(); ?>js/jquery.jclock-1.2.0.js" type="text/javascript"></script>
<script type="text/javascript">
$(function($) {
    $('.jclock').jclock();
});

$(document).ready(function(){
	$('#add_new_category').click(function(){
		$('#category_new_form').slideToggle();
		var offset=$(this).offset();
		$('#category_new_form').css('top',offset.top+50);
		$('#category_new_form').css('left',offset.left);
	});

});
</script>
</head>
<body>
<div id="main_container">
  <div class="header">
    <div class="logo"><a href="#"><img src="<?php echo cp_content_url(); ?>images/logo.gif" alt="" title="" border="0" /></a></div>
    <div class="right_header">Welcome Admin, <a href="<?php echo site_url(); ?>">Visit site</a> | <a href="<?php echo cp_url(); ?>?page=login&action=logout" class="logout">Logout</a></div>
    <div class="jclock"></div>
  </div>
  <div class="main_content">
    <?php include 'header.php'; ?>
    <div class="center_content">
      <div class="left_content">
        <?php include 'left.php'; ?>
      </div>
      <div class="right_content">
        <h2>Edit- <?php echo $category->getName(); ?></h2>
        <form action="<?php echo cp_url(); ?>" method="post" class="niceform" enctype="multipart/form-data">
          <input type="hidden" name="page" value="categories" />
          <input type="hidden" name="action" value="edit_post" />
          <input type="hidden" name="category_id" value="<?php echo $category->getCategory_Id(); ?>" />
          <fieldset>
            <dl>
              <dt>
                <label for="email">Name:</label>
              </dt>
              <dd>
                <input type="text" name="name" id="name" value="<?php echo $category->getName(); ?>" size="54" />
              </dd>
            </dl>
            <dl>
              <dt>
                <label for="email">Description:</label>
              </dt>
              <dd>
                <textarea rows="5" cols="36" name="description"><?php echo $category->getDescription(); ?></textarea>
              </dd>
            </dl>
            <dl>
              <dt>
                <label for="email">Image:</label>
              </dt>
              <dd><img src="<?php echo $category->getImageURI();  ?>" width="100" height="100" />
                <input type="file" name="image" id="upload" value="Change" />
              </dd>
            </dl>
            <dl class="submit">
              <input type="submit" name="submit" id="submit" value="Update" />
            </dl>
          </fieldset>
        </form>
        
        <!-- end of right content--> 
        
      </div>
      <!--end of center content -->
      
      <div class="clear"></div>
    </div>
    <!--end of main content-->
    <?php include 'footer.php'; ?>
  </div>
</div>
</body>
</html>